<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>四大域对象</title>
</head>
<body>

<%
    // 设置值到四大域对象
    pageContext.setAttribute("pageContext", "page");
    request.setAttribute("request", "request");
    session.setAttribute("session", "session");
    application.setAttribute("application", "app");
%>

<p>pageContext=<%=pageContext.getAttribute("pageContext")%></p>
<p>request=<%=request.getAttribute("request")%></p>
<p>session=<%=session.getAttribute("session")%></p>
<p>application=<%=application.getAttribute("application")%></p>

<a href="scop2.jsp">scop2</a>

</body>
</html>
